Separated out slide code.