The first gallery, the one with a broken layout is not a RLG gallery – the plugin has no control over that.
The other one, which is a Basic Grid from RLG displays fine.
We’d suggest switching to RLG gallery in that case. Not sure what else we could do here.
How to Get Support
After you register and login to the site, you may post all plugin support questions in the Support Forum.
If you need to provide private info, please create a ticket and then reply to it using Set as private reply option.