display gallery titles in modal