adjusting resize of slider