Create sliderController

code for slider component controller