update on gallery functionalities based on facebook gallery.