Add swipe event to trigger next or previous slider