Thank you for your reply. Yes the problem persisted even with flexslider disabled but I just fixed it by forcing the image size with this additional css code :
.single-product div.product .woocommerce-product-gallery .flex-viewport {
height: 447px !important;
}