add previous and next to gallery
clean up