Resizing group containing other groups


hi i have a group containing 6 other groups and i need to resize the group height containing the smaller groups based on if the groups are visible inside back and forth so bigger and smaller, i looked into repeating group but it looks like it only reads a list of data and i had trouble setting more than one cell up, not sure how to go about this, new to bubble

never mind i solved it lol, all i had to do was put the smaller groups in a larger group and enable callapse this elements height when hidden for the smaller groups, and then put wrap to next line in the responsive editor for each sub group