encode collection pages