Dynamically update the z-index as an example