add helper function: slides