Dynamic list filtering through javascript

I wonder if there is a way to filter a dynamic list by clicking on a button?

I am creating a real estate website where I need to filter the content by amount of rooms.
I have now created a lot of dynamic lists that are being hidden/visible by a click on the buttons.
But there must be an easier way to do this without the need for all there different dynamic lists… the website is loading slower and slower…

http://sjonarhaed.webflow.io/

Is there any javascript hero that can help?