optimizing layout OSD