Funcion reset size except argument which defines whether dimensions input should be empty.