Set dimensions.