Add condition for slider option