fixed the position of the gallery