added swipe support for carousel
added swipe support