auto size of fields for diferent sizes