image gallery does not go to next/previous