fix pop up boxes for big images