fixed length issue with galleryimage target