Production of boxes according to given dimensions