There is a problem with this simulation.

If i drop the topmost block then still other block's C.G are in right side

I mean to say if i drop the top box then other block's C.G. should again come in center, because now dropped box is not a part of the system.