implementing color swipe