Can I gang two 3-axis controlers together under mach 3, and have a 5 axis controler?

using mach 3 can I have multiple axis configuration with the same motors?
example
config#1
motor#1- X axis
motor#2- Y axis
motor#3- U axis
motor#4- V axis
motor#5- not used

config#2
using the same motors

motor#1- X axis
motor#2- Y axis
motor#3- X axis slave
motor#4- Y axis slave
motor#5- Z axis

onthemarc