Hint 1
There is no limit to the number of moves you can make here, so just take your time and be aware of the order of the animals as you move them around.
You're not going to be able to line them all up in a single stroke, so focus on the traps at the sides and work from there. It might help if you start by getting piggies one and five into their respective traps.