Now we only need to save our animation as GIF. Before we do that, let's optimize the animation using the <Image> Filters -> Animation -> Animation Optimize function. This will create a new image using a different mode than what we have now. You can use two different modes for every frame of your animation. You can either use the replace mode (default), which will replace the old frame with the new one. It's like taking the frame out before adding a new one. The other is the combine method, in which the new frame is added to the previous frame. That way only changes need to be updated. That's what animation optimize basically does. The file size gets tremendously smaller. Now we need to index the image using <Image>Image-> Mode -> Indexed function (Alt+I).