per frame version of slid preprocessing