correct size of boiboites to avoid surpass margin