Implemented a possibility to append and/or prepend an arbitrary slide.

 * Changed the exception handling to use this functionality - instead of running a function that doesn't exist (this fixes a problem in 6e668d3bcd5).