I think the slime on some fish is more protective, and to discourage parasites. Not all fish have slimy skin, sharks are very dry and rough. When we release fish, we have to be very careful not to wipe off the slime, the biologists warn us that the fish can get sick without it. I wouldn't be surprised if it was toxic. Fish without slime, like sharks, often have symbiotic relationships with other species to clean their skin. And less slimy fish like salmon and carp tend to get parasites like sea lice, or various diseases more easily.
It's interesting to watch fish closely, they definitely use their scales to change their surface characteristics when swimming. I have also seen small air bubbles under the trailing edge of the scales, but only on large scaled fish like salmon, carp, etc. It also seems like the larger the scales, the less slime in general. Slime being more common on small scaled fish like bottomfish (halibut, flounder, skates). Possibly because they are not as well armored against biting things. Tuna are small scaled, and very slimy, lol. They also have little pockets behind their fins, when they burst at high speeds, their fins tuck into these pockets to reduce drag.
Lol, now all we have to do is figure out how to apply this to our ships and subs.