refactor photo detail pager adapter