initialize dimensions in resources