Add gesture to control the slider