Add z-index value to layers.