Here's how it works:
* Slough can be spelled sluff as a verb meaning to come off in scales or layers, like shedding skin.
* Slough can be spelled slue as a verb meaning to swing or slide sideways, like turning a ship.
While both spellings are correct, they are used in different contexts.