I don't see why you cannot simply extend the cables. As long as the connectors used are rated for the current, are of good quality & are terminated properly, all will be fine.
Edit: as pointed out below, the connections should be within the shower unit itself or housed in a suitable junction...