insert gallery to history tabs