added option to show or hide prev/next buttons

added a new option to set the visibility of the 'previous' and 'next' buttons, defaulted to 'true'.