Adding snap-close directive

Adding snap-close directive