Added swipe detection script (next/prev card, open/close toolbar)