more build_gallery tweaks