Use z-ordering for removing elements