Hi...the Dimmer Switch is electronic I am sure and so needs an earth in order for it to work. You don't need to change the earth to the lights, just add an earth to the switch.
You need to break the +12V line between the supply and the the lights at the dimmer - so 12V into the Supply Input, and the Load then goes to the lights.