Add lastPage to cbSlider scope