Key Gear Points to Check: Harness (you already did), Drysuit Fit(should have same flexibility that you do out of the water), Band Positioning
Technique for Trim: Head up, arms out in front, stiffen shoulder blades, crunch butt cheeks, angles toward butt, point toes
Finning: Must be able to do all finning techniques (flutter mod flutter, frog, mod frog, reverse, helicopter turns), being able to do all these add to balance and control
Technique: Line hand up with nose and reach straight back overhead, then flare hand out to valve, keep breathing smooth and keep track of reference point. Practice, practice, practice this stuff does not come overnight.
It is a combination of all these things that allow us to hold and do valve drills in trim. This is really hard to diagnose on-line and if you just did a class then your instructor should have covered this and been able to give you feedback with what you are doing right, what you are doing wrong and how to fix it. IF your answer to all of the above items is "Yes, all is good" then NO it is not and you need to seek out an instructor who will give you honest feedback and how to fix it. What did your instructor tell you??