add slide codes to main page