how to create an area and make a swipe on it