Removed overlapping edges from the layer figure