Hi,
I would recommend to use a graphics editor and prepare images of categories (make them the same size) before uploading images to your media gallery.
Or read this article and try to set Crop option – https://xstore.helpscoutdocs.com/article/89-product-images
Regards