adjusting the gallery page