I solved this by using the Accordion widget in the marketplace. Here, you can configure how the expand/collapse works by using a microflow. I simply store how it needs to stay for each section and that way, even after clicking, it stays open.
When i enter the page, all values are set to false to everything is collapsed.
https://docs.mendix.com/appstore/widgets/accordion/