Given a category , and an object a slice category is the category of pairs of -objects , and morhpisms from to .