fixes pause for long playing gifs