added pager to gallery