Normalize layout