update swip left or right