How To Center This Repeating Group Horizontally?

I was trying to do something similar and this may help I haven’t tried to centre but if you could dynamically display the number of cells as in the example below you may able to better center it.

Horizontal RG are a bit tricky though.