How to open the purple slime doors?

Ok I've found the solution: you actually have to find a way around it, and once behind, there's a giant eye in the middle of the slime wall. You can hit and destroy it.

Swords of Ditto, slime door's eye