I think its because the path you have to your directory is wrongg {gallery}my_folder{/gallery} is the path for a gallery in the stories folder. if the directory your using is in a folder within the stories folder it should be {gallery}my_folder/sub_folder{\gallery}