conform_dimensions function

Conform dimensions