auto-detect layer/groups in the SVG