changes the way the slider resizes