This is a basic function for sliding the reading pages