It is page number X to Y. for eg 2 - 5. Previously there was a bug so that a space between number and - was required for it to work in somewhere else, crossref submission, if I remember correctly. I don’t know whether it is fixed but I always leave a space there.
I don’t think there is a way for automatic population.