auto resize for sliders