It really is a little more complicated. Some Hint: You need to finish the one below first. The squares that don't touch any walls are important so try to move the barrels around those squares before you slot them in the right place.
I tried your teqnique but I can't solve the puzzul