If you are just creating the doc, then simply enter section breaks as you go. If you are working in an existing document, insert sections breaks at start and end of pages that need separate page sizes BEFORE changing the page size (it could get confusing otherwise).