masking vertical animation using z-index