Hiding empty sections in a database gallery

Sure, glad to help.

As a side note, Shlomi’s suggestion above can also help you model your data better: another table for the images with a multi reference will help you saving a different number of images per item, without additional columns for blank ones.

Good luck,
Idan.