improved layout behavior for center div