lines' shape in 3d environment

Hi. I sticked few layers together to make a prism and i decided to make a contours on each eadge. As a rendered result i’ve received this:

(see file attachments)

Are there any methods to fix those splits i marked with red?

01.jpg