Workaround for gallery in repeater?

The only thing I could find is this post, but I’m a little confused and concerned about the feasibility.

Particularly with making it work how I want it, as shown in the screenshot included in my original post above.