The new code on the gallery does have some glitche

The new code on the gallery does have some glitches.