use alternate method to collapse pager from notebook.js as suggested by @Carreau