I wanted to share my thoughts based on what I understood so far.
I need to move 289 frames of a .Gif image, to generate a horizontal image containing all the layers of the gif, like the example I done,
Your images are about 24 mm (173 pixels) squares. If you want to juxtapose 289 of that size images side by side (assuming there is no gap between the images), you will end up with an image that is about 6.9 meters by 24 mm high (about 50,000 Pixels wide and 173 pixels high). Most browsers could have an issue with dealing with an image of that dimensions.
I need to make all the layers one next to other, because we need to put it in a website and make a css animation.
Save each of those 289 frames as an image file and use
this site which will create a sprite sheet. Note that I have not tested it myself and also am unsure if it will be able to handle a resulting image that is 50,000 pixels wide. If possible, cut down your frames to essentials so the composite is more easier to handle.
If the above does not work,
here is a solution on how to make a sprite sheet using Adobe Animate.
Also, I found
this CSS article interesting on how to create Sprite Sheet animation but it requires the composite sprite sheet made.
Good luck and let us know how you fared.