generate intersection rectangles