use top positioning for paginating instead of magic numbers