You need an image editing program like Photoshop or GIMP. GIMP is better, because it's free. A simple internet search should tell you everything else you need to know.
But a better option than animated .GIFs is animated .PNGs, which you only need the APNG edit Firefox extension for to do. I strongly recommend animated .PNGs over .GIFs, they're so much better.