resize image to show properly in slider