pagination implemented for sliding animation only