improve swiping logic