Adjust the z-index with layer order