find areas (rectangles) in layers