added display inline-block to rectangles