At least in the context of $X=Y=[0,1]$ and $Z=\mathbb{R}$, this is essentially the same as
If $(g_n)_{n\geq 1}$ is a sequence of continuous functions $[0,1] \to \mathbb{R}$ that converges pointwise to the continuous function $g$, then $g_n$ converges to $g$ uniformly.
which is false. For instance, we may consider the sequence $$g_n(x) = \begin{cases}nx(1-nx) & 0 \leq x < \frac{1}{n} \\ 0 & \text{ otherwise}\end{cases}$$
which converges to $g(x) = 0$ pointwise, but $g_n(1/(2n)) = \frac{1}{4} \not\to 0,$ so $g_n$ doesn't converge to $g$ uniformly.
For this particular example, we may create our $f$ by formally replacing $n$ with $1/y$ to get
$$f(x,y) = \begin{cases}\frac{x}{y}\left(1-\frac{x}{y}\right) & 0 \leq x < y \\ 0 & \text{ otherwise}\end{cases}.$$
In general, if we have a sequence $g_n \to g$ pointwise but not uniformly, then we define $f : [0,1]^2 \to \mathbb{R}$ by $$f(x,y) = \begin{cases}\left(n+1-\frac{1}{y}\right)g_n(x) + \left(\frac{1}{y} - n\right)g_{n+1}(x) & \text{ if } y > 0, n=\lfloor 1/y\rfloor \\ g(x) & \text{ if } y=0\end{cases}$$
Since the functions $g$ and $(g_n)_{n\geq 1}$ are continuous, each $f(\cdot, y)$ is continuous. Since $g_n \to g$ pointwise, each $f(x,\cdot)$ is continuous.
However, one may use the compactness of $X=[0,1]$ along with the assumption $g_n$ doesn't converge to $g$ uniformly to show that $f$ is not continuous at some point $(x,0)$.
Conversely, if $f : [0,1]^2 \to \mathbb{R}$ were a function with continuous slices but not continuous at $(a,b)$, then there is a sequence of points $(a_n,b_n) \in [0,1]^2$ such that $(a_n,b_n) \to (a,b)$ but $f(a_n,b_n) \not\to f(a,b)$. Then we may define $$g_n(x) = f(x,b_n) \\ g(x) = f(x,b).$$ Once again, since $f$ had continous slices, these functions are continuous and $g_n \to g$ pointwise, but $g_n(a_n) \not\to g(a)$, so the convergence is not uniform.