It's good you're doing that exercise, but be aware that it's not enough to make any significant impact on your
total calories burned per week. The weight gain may be a result of you subconsciously thinking you can eat more because of the exercise when you should actually be eating less.