This would require implementing Custom Code into your website. The Code could be added via:
Lay Options > Custom CSS & HTML >
---or---
Customize > CSS
---or---
Page or Project > Gridder > +More > +HTML >
The basics of the Accordion can be read about here:
Hope this helps @Violante & best wishes 🌝 Richardhttps://www.w3schools.com/howto/howto_js_accordion.asp