Fix masonry when tab changed