Added swipe functionality to cards