Added code generation for Slider component