photo gallery not working with responsive design