How to implement Accordion in slide menu

How to implement accordion in slide menu

You can take a look at this CodePen for inspiration:

i have tried it but in side menu it give some problem
please i need specific example.

I am also trying to do same but not able to implement that. when data is more inside a slider then its pagination also goes up when I try to scroll the page.