resize image to work with slider