implemented slide caching