added onresize fixSlider function