move_layer function

Move a layer to a different z-position