Make the z-index dynamic based on y