Simply place walls up so that a 3x1 area is all walled up. Place the LAVA FIRST on one side and then water last on the opposite side. Tada.