adjusting gallery page