The figure is in the above image.
I am told that the joint density $f(x,y)$ is constant in the region shown in the figure. So $f(x,y) = 1/12$ for the region of the figure.
I am asked to find $f(y)$ and $f(x|y)$
I need help finding $f(y)$ in order to find $f(x|y)$
To find $f(y)$ I know I need to integrate out $x$ in the joint pdf $1/12$ but the issue is that the bounds of integration for x change between $0 \leq y \leq 1$ and $1 \leq y \leq 5$ so what would be $f(y)$? Would be it piecewise and $f(x|y)$ be piecewise in turn? Can someone help me figure this out?

You are correct, you need to handle the parts separately: $$ f(y) = \begin{cases} \int_0^4 f(x,y) \ dx = \frac{1}{3} & \text{if } 0 < y < 1, \\ \int_{y-1}^4 f(x,y) \ dx = \frac{5-y}{12} & \text{if } 1 < y < 5. \end{cases} $$ I will leave the second part to you.