Packery - fit item in previous position, vanilla JS

Click item to toggle size and fit in place