add position detection of modules

make parent element relative to get absolute coordinates of modules