Support custom slide size and scaling constraints.