flipLayers function

Flip snow profile layers top down