How to shrink a vertical scrolling repeating group when there is not enough content?

This is probably something really obvious but I feel like I’m missing it. If I have a vertical scrolling repeating group that only shows 3 items, but that data source only has 2 items, how do I shrink the repeating group so I’m not showing extra space?

For example, if I have a page of reviews and it shows 5 reviews before scrolling, but I only have 2 reviews, I’m left with a lot of extra space. Is there a way to fix that?

Did you find an answer do this problem?

Not a nice one. I had to make 2 extra groups that show/hide depending on the count of the repeating group.