show/hide arrow navigation depending on the number of pages or medias