I'm trying to work my way through a category theory textbook on my own (Awodey's) and came across a problem asking about groups in a slice category $\mathbf{Sets}/I$ for any set $I$. For a group to exist in a category, Awodey said it must have finite products, which makes sense, since we need products to define a binary operation. Which led me to think about what a product is in $\mathbf{Sets}/I$
I figured the obvious candidate would likely be an arrow whose domain is the product in $\mathbf{Sets}$ but that doesn't seem to work, as follows.
Let $I$ be the set $\{1,2\}$, then consider the sets $\{1\}$, $\{2\}$. For objects in the slice category, take functions $i,j$ which will be the embeddings $\{1\}\rightarrow \{1,2\}$ and $\{2\}\rightarrow \{1,2\}$ respectively. Suppose there is a product $i\times j$ which has as its domain the set $\{(1,2)\}$. Let $\bar 1,\bar 2:\{(1,2)\}\rightarrow \{1,2\}$ denote the constant functions which map to 1 and 2 respectively.
Then, $i\circ \bar 1:\{(1,2)\}\rightarrow \{1,2\}$ is the constant function which maps to 1, and $i\circ\bar 2$ is the constant function which maps to 2. There's no single choice for $i\times j$ which makes it an actual candidate to be a product. (I also don't think disjoint union works, it doesn't satisfy the UMP I don't think.)
So then, what is a product in $\mathbf{Sets}/I$, and if it is some function from the product in $\mathbf{Sets}$ where's the mistake in my reasoning above?