COMPILE TEMPLATE OF SLIDE