Cutting extra transparency of 2D Sprite

So I’m trying to use a sprite my friend made but when I put it in game it has extra transparent area around it but because I’m using this sprite as UI element I need to be able to be sure of its outline which I can’t cut. Here’s an example picture
9328958--1305668--image_2023-09-16_130740965.png
When I put this picture in a UI Image component it also creates the empty space for the transparent place I want to get rid of that. Isn’t there any way to tell the component to just ignore empty places.9328958--1305671--image_2023-09-16_130928472.png

In the top picture it appears you are moving the inner slice lines, not properly defining the outline of your sprite.

If it was just the sprite outlined then it would look like a white line precisely around your geometry.

If you have a piece of graphics on transparency, the auto-slice feature in the sprite editor should just find only the pixels necessary.