fixed popup on the gallery