fix for sliding prev - next