The game finished 2-2 with Slough getting back on level terms despite leading by a goal earlier in the game.
Elliot Benyon gave the Rebels the lead after the ball was cut back for him to slot it home right before the interval.
The quality of the game increased in both teams after a substandard first half and Barry Town made a great start to the second half.
Chris Hugh guided the ball home past Jonathan North to get back on level terms.
Barry Town upped the tempo of the game and their efforts paid off as they took the lead as the ball was played to Josh Graham in the box and he tucked it away to give the hosts the lead.
The game became increasingly intense, with a physical altercation between the players.
Slough continued knocking on the door to find an equaliser and with the best bit of quality of the day, they found it.
James Dobson made an incredible run with the ball on the left channel, found Imran Kayani unmarked in the box, who then controlled the ball brilliantly to then dispatch it away with a cool finish.
The Rebels pushed on late to find the winner as Dobson tried his luck from 25 yards out but his effort was kept out.
Slough Town Line up
Jonathan North, Josh Jackman, Joe Dandy, Ryan Bird, Lee Togwell, Edon Pruti, George Wells, James Dobson, Imran Kayani, Fabio Sole, George Hunt, Scott Davies, Aaron Kuhl, Matthew Lench, Johnnie Goddard, Ben Harris, Elliott Benyon (all used).