Optimize slide search