Ensure gallery is shown only if there are child anchors (the thumbnails)