update helper functions for slides