Added binding function to the slider