added imageresize to sliderwidth and height