Add gallery display conditions

Show the gallery only if we have enough images