Added several functions for slides