Modified RangeSlider to use double as datatype instead of long.