active class to snippets