I had not time to test it yet, but reading it... you have a typo here... cell.metadata.slideshow.slide_type instead of slide_tyle...