added swipe support to carousel