Fixed zindex calculations to use computed values