A modified working version of the Gallery Plugin