Need help configuring serial ports to control Camera and Gimbal via Mavlink

I am using a pixhack V3. I have problems configuring the serial ports in order to connect everithing I need. These are the planned connections using serial ports:
Serial0: USB
Serial1: Telemetry Radio
Serial2: Camera
Serial3: GPS
Serial4: Gimbal

This is the configuration needed for the Gimbal:
•SERIALx_BAUD = 115
•SERIALx_PROTOCOL = 1
•SRx_EXTRA1 = 20
•SRx_POSITION = 5
•SRx_RC_CHAN = 20

And this for the camera:
SERIAL2_BAUD=57
SERIAL2_PROTOCOL=1
SR2_EXT_STAT=5
SR2_EXTRA3=5
SR2_POSITION=5
BRD_SER2_RTSCTS=0

The problem is that these parameters are only available for serials 0 to 3 so I can’t configure serial 4 because these options do not exist. Is it possible to configure serial 4 parameters like serials 1 to 3 in any other way? It can be done modifying the code easily? Another option could be swap GPS with gimbal and connect GPS in serial 4 and Gimbal in serial 3, it would work?

Thank you!

What gimbal controller are you using?

Is an Alexmos board.