ah I see, so the problem isn't web components as such, it's just that there's a lot of bad code out there and choosing pieces of it is hard. The lack of a good web components catalog continues to be a drawback for the community.
Not sure your specific requirements but there are plenty of other options that might be more suited:
https://image-compare-component.netlify.app/
Just drop elements into the slots as you see fit.