Collapse/expand in repeaters is explained well here:
https://www.thiscodeworks.com/how-to-expand-and-collapse-elements-inside-repeaters-in-wix-wix-howto/5e10ce3296432f6f7b798b33