validate that dimensions are both above 0