fixed previous button skipping first image