Adding shim to layouts