fix template select due to photo-mask and add overflow hidden to prevent text overflow out of the photos