Generate SVG slicing layout from chips

That sure was painful. Need to sit down and try to understand the problem deeper.