Fixing moving previous/next frame goes out of the playlist boundaries