Round up maxsize to even number