resize carousel when images load