gallery shows all pictures in the array