Thank you for playing the game !
The last level was a bit rushed, but the general idea was to raise the three gates blocking the barrel at the bottom of the screen. The problem is only that the gates can fall back down after being raised, which can cause the barrel to get stuck.
So the best strategy is to wait until the barrel is at the gate to raise it.