add events trigger for slider