Initially hide qrcode and resize it according to event box size