Fixing gifs with reversed loop