For prevention, I might go with several changes in the way the tank is run. One is the surface skimmer and what I see might not be big enough to do the job fully, so perhaps a bigger one? Perhaps pull the media from the skimmer to clean it more often? But at the same time, I would work on reducing the cause by changing up some things like food. Just some things that I might look at as I don't know what is currently done, so not meant to accuse you of anything!
Perhaps too much food or food of the wrong sort that has too much oil or is not fully eaten? I had one large 75 gallon tank which suddenly came up with this and it was a real problem as more surface flow was suggested but that only created a stack of bubble like a bubble bath. Note flow all around the tank as well as more/better bio filtering seemed to solve my problem. In a large tank, powerheads around the bottom to keep all the water moving to the filter seemed to be the final solution, in my case.
I also backed off on feeding and changed brands of food, so uncertain what was the bigger issue.