implement cases for slider