When I try to swipe after the leftmost limit or rightmost, the script crashes. 