fixed the size of boundaries in the diagrams