fixed getgallery params