hide layer while transitioning