changes for showing image gallery