added intelligent functions to close the the sorter if slides or arrows are clicked, and also when filter is clicked the slider moves to slide 1 so it is always shown