expand collapse sprites and search position