format page ranges in labels