update prev/next section