updating gif to loop