To All the fellow members.
here is some of the findings that might help.
when Layer shift happens
1) Check Belt tension
2) Motor Current
3) When using two Y motors, try using a series connection, rather running parallel
4) Reduce the mass on motion
5)Especially in Big Machines check for the slippage and axis parallelism
After check all and being frustrated to fix the issue of layer shift, the culprit could be you pulley. When you buy cheap chines pulleys, you may not be aware that the tooth depth cuts are sufficient enough to hold the belts.
I had sleepless nights and changed a good quality pulley to fix them.
Be careful, when you choose pulleys.