update div layout