fix the problem on ReferenceError: Slider is not defined