Where is written that switches are not working on the layer3?
In common usage, switches referred to layer 2, Ethernet. A separate function, at layer 3 was done by routers. The layer 3 switches simply move the routing function into dedicated hardware, rather than software, as was previously done. Regardless, if you're not routing a layer 3 switch won't accomplish much that a layer 2 switch couldn't do.