Fix to hide prev/next arrows on first and last page respectively