In order to slide into the cabinets the shelf has to be pretty thin....which was not the case with my shelves. I attached to the wall.