Putting the triangles near the rectangles