Hiding the slider after clicking on counting and grouping widget