fixed getgallery params again