Store multiple images per item in your collection with Media Gallery fields

I’m not sure which galleria you’re using, but try to see if its settings are in (cut) or (adjust), and from what I know, you do not need code to display items in the gallery and only connect to the database.

But I could be wrong and just a guess.