template text change in gallery