added param for pages to show

- added parameter for the number of pages to be shown: value can be set
in widget back-end