Change base class from Slider to RangeBase, because Slider hase some properties, which can lead to an incorrect behavior of RangeSlider itself