When ever you put medication or other stuff into the tank, it will become foamy and the bubbles will be smaller, this is normal, just use the recommended dosage and you will be alright. For example, melafix does the same thing, it makes the top of the tank filled with bubbles that won't go away. So nothing to worry about.
I'm pretty sure it is your declhorinator, did you use what it said on the bottle?