Collapsable repeating group with maximum results

I was wondering how we could create a collapsable repeating group that outputs a maximum of 5 results → although if there are 3 results, then it should only show 3 instead of 5 (with 2 empty cells)

Is there any way to do this? → the only collapsable RG available is full list but I cannot seem to set a maximum number of cells, it just shows everything.

Cheers & happy holidays!