Enable / disable slider component.

Adding enable & disable for the slider component.