Fixed issue with duplicate id for gallery item