dismiss window when swipe left/right