animation flickering issue