Page size is for the system, not the program. If segment 1 is divided into 2KB pages, then segment 2 will also be divided into 2 KB pages, otherwise we won't be able to implement the paging concept properly, because the frame size will be same for all pages.