Fixing get-gallery method