updated image and slider so that each image in the slider knows what sizes to use