This is a basic function for sliding reading pages