adjusting gallery image placement