initial masonry-based gallery layout