slider resizing fix