adding gallery below histogram on click