SplitLayers function

Split and Join Layers Together