Set minimum and maximum dimensions in mode config