Adjusted number of images depending on screen size