feature(js): adds swipe detection to the carousel