layout performance pitfals