fix z-index pin when expanded