nug fixed for gallery template issue

nug fixed for gallery template issue