Performance optimizations, slide box implementation.