pagination and img spacing