Flickity - resize method, after being hidden, vanilla JS