add the handleResize and removeSlider methods