fix z-index issue with crossfade transition