Get 2 manual hubs and the spacers. The spacer resides behind the manual hub and makes up for the difference in length between the electric and manual.
Just go to some reasonable mechanic and he will know what to do.
See the pic... & the spacer behind the hub for your different "depth" problem.