Two possible causes come to mind...
If the X, Y and Z moves are on the same line of code.
Try putting the Z move on it's own line before the X and Y moves.
If the Acceleration (in motor tuning) has not been set high enough and you are using Constant Velocity.
Increase Acceleration or try running in Exact Stop mode.
Tweakie.