Add Table of Contents to Image Gallery.