Optimal handling of the overlayer's size