resizes the images on screen resize