Manages z-indexes to ensure that participating elements are visible when active.