How can I avoid gaining weight after a thyroidectomy?

I already have a slow metabolism, and sticking to a diet is tough for me no matter how hard I try. Now I have to get a total thyroidectomy next week, and I'm worried about weight gain. Is there anything I can do to avoid it? Thanks.