updating z-index