yes you can do that with X52
go into joystick setup and spin your rotors around. You'll see the value change. then just assign that rotor to whichever trim you want it to control.
I have the slider as aileron trim, the big one on top as rudder trim and the small one lower left as vator trim