Implement disable prev and next btn while index reach top or bottom