How to make slices for borders from an image?

How to make slices borders from an image and make it as action on the website?
Is there AI and paid professional software which can do it using one click?
Maybe AI can help it and make borders like municipality or regions as a link?