Perhaps this is too simple an answer for you, but you can simply open the animated GIF in an image editing program of your choice, that is, Adobe Photoshop or any other free one, and then just save the GIF without animation.
Then reload the new GIF (without animation) to where you display your images.
If you use Photoshop, you can simply open the file. GIF and go to window> Animation in the menu. This will display all frames in the animated GIF in a new dialog box.
Just delete all frames and save as. Just don't overwrite the original with animation if you still need it.
source share