Added new changes for Gallery