Repeating Group controling page size


I currently have a RG with 5 rows which display a list of members in a group. However, some groups may only have 3 members. How do I make it so that size of the RG changes accordingly with the amount of members so that there is no space left after?

This is how it looks now: (white space after it bc there are only 3 members)

I believe I fixed it by changing LAYOUT STYLE to EXT VERTICAL SCROLLING
please let me know if this is the right way