Calculate how many photo's each page will have