Parents each selected layer to the layer above it.
Liam Shevill said: unless it's to the next selected layer?