Fixed error with default blog items
Added pagination to galleries, and added in a fallback to protect against division by 0 errors on paginated pages.