How to create gallery by code?

@volkaertskristof No, repeater limits mention that Galleries can’t be added there.
Is it possible to add new Pro Galleries into the cells? How? That’s what I don’t know how to do: create new galleries according to a query results and attach them one below the other. If it is possible to do it through tables, it would be great. But how?