Animated images cannot change their size. Their smallest dimensions are the minimum dimensions that contain all elements of the animation. Think of it like a filmstrip in a movie, the projector and the lens need the film to be a constant size for it to run through the projector and work. So there's no way to do this. I do not use animated images in Roll20, but I do encounter a problem with large area of effect templates that I lay down on the grid that are in front of other tokens. Maybe this is the problem you trying to solve? If so, you can try using the Send to Back command from the right-click menu, or maybe sending them to the Map Layer, but I am not sure if animations work on the Map Layer or not.