page_num was not int type in wedding.views.gallery, fixed