Reindexing z-index of graphical objects