Z axis : how to set it to raise when travel

Hello all,
Printing through AstroPrint about a month now.

When printing one object, it seems to be great. But Last night I have had consecutives failures for multiple objects place to print them all at once. (Different objects)
The issue is Y axis shifting.
I think it is cAused by the nozzle hitting some of the printed objects and knock the plate off by one or two teeth.

Belt are tight.
So it may be due to the Drv 8825 that skipped steps… but really not that sure.
Will replace the driver to A 4988. And try from there.

But really want to add the Z raise when moving from layer to layer and/ or when travel from one object to other.

Anyone has any feedback would be really appreciated.

Thanks a lot in advance!!

Robert