Yuck, sounds like biologics - algae and/or microbes.
Basically, the most effective method is to drop and clean the tank.
Besides that, only other way is treating the fuel tank with biocide, and having several spare filters on hand - because as the biocide kills that stuff off, there's only...