Add z-index to groups