added the copying of SLayers for nodes and relations