I think you can consider resizing the UVW Map gizmo to keep the border outside the object.
The border naturally occurs due to the fact that the image has a border and the area other than the image is some other color, which eventually results in a depth or height depending on the tonal difference.