add next and prev images