prev/next code cleanup; discrete smoothScrolling fn