How to flatten layers properly

  I am trying to create simple smoke effects and they would print fine as is for years.  Now all of a sudden they would print properly and have a faint border around them. I have tried to flatten the layers but with no success. I must be missing something. What is the easiest method to flatten layers?