check if pager exists, add infinite carousel