added check

can't divide dimension into more context regions than it is long