resize and move modules to fit more cleanly