private function getSliceStart($siblings) { return min(max(1, $this->getNumberOfPages() - $siblings), max(1, $this->currentPage - $siblings)); }