adds slide functions