checking z-index