added the slider feature