fix bug(don't allow interact with user when animation/when the number of pages less than 2 then display 1)