added snap div with js