The caliper screws are normally in slots, so once released, the caliper can move sideways; however, often, that's still not enough, so a single 12mm washer inserted behind the anti-rotation washer will sort it.
If you take the wheel-nut and the nut inside the cassette off, there's two 12mm washers inside the cassette. If you have plenty of chain clearance on the cassette side, you can use one or both of those washers. It's a bit of a pain to have to slide everything over the motor wires, but not difficult. You always have to play about with washers to get the correct motor installation.
Assemble your cassette to the motor to do this try-fit, so that you can check both sides, but don't do up your cassette retainer tight otherwise you can't get the cassette off to adjust things. Only tighten it hen you're sure everything is correct.The ia is to line up the disc on the one side and leave one or two mm clearance between your chain and the frame on the other.