Buttons next and previous added dinamically depends on page number