Updated gallery script...fixed typos