a trainer can be an independent contractor, yet still be paid through the gym. You would issue a 1099 at the end of the year. Alternatively, you can have the trainers deal directly with the members, and you would probably have an arrangement of getting a percentage.
The first case would be more likely if the trainer teaches classes, and the members pay for attendance. The other would probably apply more often when trainers work one-on-one.