Adding snap-close directive