A layer 2 switch breaks up your network traffic into separate collision domains. It does not help with broadcast domains. A layer 3 switch which works at the network layer of the OSI model can do both.

------------------
Born to Network