Refactored event triggering for sliders