center popup, hide links for  first / last popup