Delete next and previous links if there is only one image