removing cache from next and prev