new snippet to hide the gallery tab if it has only one image (already shown somewhere else, for example)