class that extends JSlider