private function updateOffset()
    {
        if ($this->after()) {
            $this->params['after'] = $this->collection[$this->total_count - 1]['id'];
        } else {
            $this->params['before'] = $this->collection[$this->total_count - 1]['id'];
        }
        return $this;
    }