Yes indeed, a RG will work. Generally speaking, if it repeats, use a repeating group. Following is a depiction of my approach, which allows for wrapping and also handles clipping and scrollbar related issues that might appear in dynamic layouts…
I’m working on making some of my working examples available again, but until then, you might want to check this recent forum thread which describes a similar approach. I’m not sure it addresses the wrapping or scroll issues, but it might get you pointed in the right direction.