simple  gallery on pure javascript