intrinsicContentSize updates based on the number of pages

intrinsicContentSize now returns the correct size based on the number of pages. invalidateIntrinsicContentSize now gets called when numberOfPages changes.