controller for slider