making plot gifs correctly