Drag and resize of n objects and save of the position and size

Drag and resize of n objects and save of the position and size

Hello,

I try to create a possibility that a user can move and also resize objects (div).
After chabge the system should save this and remember next time.

90% works. But if i resize and move a element and reload the page the position and new size is correct.

If i resize now again something, the second element which i not touch moved somewhere.

I don't know why this happen. Any ideas?

See https://jsfiddle.net/couganet/tdb94bpp/1/

Thanks
Mark