Better overlay metrics calculation, prevents width overflow