Re binding magnific popup after layout change