Changed images to pages, made a bit more dynamic 'n' that