(added) - worked on the snap script. Now refits after resize and debounce resize and scroll events