modifying gallery setup